package com.sig.util;

import com.alibaba.fastjson.serializer.SimplePropertyPreFilter;

import java.util.Collections;

/**
 * 过滤工具
 *
 * @author sig
 * @since 2019/1/26
 */
public final class FilterUtil {

    private FilterUtil() {
    }

    public static SimplePropertyPreFilter filter(final String... elements) {
        final SimplePropertyPreFilter filter = new SimplePropertyPreFilter();
        Collections.addAll(filter.getExcludes(), elements);
        return filter;
    }
}
